package com.wannengbang.cloudleader.homepage;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.wannengbang.cloudleader.R;
import com.wannengbang.cloudleader.base.BaseActivity;
import com.wannengbang.cloudleader.base.DataCallBack;
import com.wannengbang.cloudleader.bean.IncomeListBean;
import com.wannengbang.cloudleader.bean.ReturncashListBean;
import com.wannengbang.cloudleader.event.IncomeDataEvent;
import com.wannengbang.cloudleader.homepage.adapter.IncomeShareListAdapter;
import com.wannengbang.cloudleader.homepage.model.HomePageModelImpl;
import com.wannengbang.cloudleader.utils.NumberFormatUtils;
import com.wannengbang.cloudleader.widget.AppTitleBar;

import org.greenrobot.eventbus.EventBus;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class IncomeDetailsActivity extends BaseActivity {

    @BindView(R.id.title_bar)
    AppTitleBar titleBar;
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.tv_order_money)
    TextView tvOrderMoney;
    @BindView(R.id.tv_pay_type)
    TextView tvPayType;
    @BindView(R.id.tv_income_money)
    TextView tvIncomeMoney;
    @BindView(R.id.ll_share)
    LinearLayout llShare;
    @BindView(R.id.tv_jihuo_money)
    TextView tvJihuoMoney;
    @BindView(R.id.ll_return)
    LinearLayout llReturn;
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;
    @BindView(R.id.tv_relation_type)
    TextView tvRelationType;
    @BindView(R.id.ll_share_new)
    LinearLayout llShareNew;
    private String type;
    private IncomeListBean.DataBean.ItemListBean dataBean;
    private List<ReturncashListBean.DataBean.ShareMoneyDetailBean> beanList;
    private IncomeShareListAdapter listAdapter;
    private IncomeDataEvent dataEvent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_income_details);
        ButterKnife.bind(this);
        initView();
    }

    public void initView() {
        type = getIntent().getStringExtra("type");
        dataEvent = EventBus.getDefault().getStickyEvent(IncomeDataEvent.class);
        if (dataEvent != null) {
            EventBus.getDefault().removeStickyEvent(dataEvent);
            dataBean = dataEvent.getDataBean();
        }
        if (dataBean != null) {

        }
    }
}
